<%-- 
    Document   : facturas
    Created on : 08-24-2012, 09:19:27 AM
    Author     : marco.castro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

 
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>


<script type="text/javascript">
$(document).ready(function() {
    $("#guardarFactura").validate();
});
</script>
<script type="text/javascript">
  function producto(string){
   var name=string
   document.getElementById('producto').value=name;
   }
   function OE(string){
   var name=string
   document.getElementById('OE').value=name;
   }
   
</script>
<!-- Extream Component -->
<link rel="stylesheet" type="text/css"
	href="../resources/css/extremecomponents.css">
<script type="text/javascript"
	src="../resources/javascript/extremecomponents.js"></script>
	
	<script type="text/javascript"
	src="../resources/javascript/jquery.js"></script>
	
	<script type="text/javascript">
			function onTableClick(idExpediente){		
				
				$("#idExpediente").val(idExpediente);
				
				showEditBtn();
			}
			
			function showEditBtn(){
				$(".btnEditar").hide("fast");
				$(".btnAgregar").hide("slow");
				$(".btnEditar").show("slow");
				
			}
			
			function hiddenEditBtn(){
				$(".btnEditar").hide("fast");
				$(".btnAgregar").show("slow");								
			}

			function emp(idEmpleador,nombreEmpleador){		
				$("#idEmpleador").val(idEmpleador);
				$("#nombreEmpleador").val(nombreEmpleador);
			}
			
			
	</script>
	<script type="text/javascript">
	$(document).ready(function() {
	    $("#factura").validate();
	});
	</script>
	<jsp:include page="includeCSSjs.jsp"/>
    </head>
    <body>
        <font class="divTextoEncabezado">Expedientes</font>
        <br><br>
<div id="divOverflown">
<form:form method="post" action="" commandName="expediente">
<table width="50%" border="0">
  
<form:hidden path="idExpediente" id="idExpediente"/>

</table>
<br><br><br>
<center>
		
		<div class="btnEditar" style="display:none;">
					<input type=image src="../resources/img/btn_detalle.png" width="95" height="30" class="inputBoton" onclick="edit('expediente','showResultado')" >
					
		</div>
</center>

</form:form>

<!-- Extreme Table  -->
<c:if test="${!empty expedientesList}">
 		<ec:table 
    items="expedientesList"
    action="${pageContext.request.contextPath}/admin/showExpedientes"  
    view="compact"
    imagePath="${pageContext.request.contextPath}/resources/images/compact/*.gif"
    rowsDisplayed="8"      
     var="pres"  >

    
        
    <ec:row highlightRow="true"  
    onclick="onTableClick('${pageScope.pres.idExpediente}');">      
      <ec:column property="annoExpediente"  title="Año"/>
      <ec:column property="correlativoExpediente" title="No. Expediente"/>     
       
       <ec:column property="fechaExpediente" cell="date" parse="yyyy-MM-dd" format="dd/MM/yyyy"  title="Fecha" />
       <ec:column property="delegado" title="Delegado" />														     
       
    </ec:row>
  </ec:table>
</c:if>
</div>
        
    </body>
</html>
